package kr.couponplay.android.domain.deal;

import java.util.ArrayList;
import java.util.List;

public class QnaBox {
	private Qna question;
	private List<Qna> answers = new ArrayList<Qna>();
	
	public QnaBox(Qna question) {
		this.question = question;
	}
	
	public QnaBox(Qna question, List<Qna> answers) {
		this.question = question;
		this.answers = answers;
	}
	
	public void addAnswer(Qna answer) {
		if (answers == null) {
			answers = new ArrayList<Qna>();
		}
		answers.add(answer);
	}

	public Qna getQuestion() {
		return question;
	}

	public void setQuestion(Qna question) {
		this.question = question;
	}

	public List<Qna> getAnswers() {
		return answers;
	}

	public void setAnswers(List<Qna> answers) {
		this.answers = answers;
	}
}
